home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / ctrlz120.zip / CONTROLZ.H < prev    next >
Text File  |  1994-12-12  |  18KB  |  461 lines

  1. /*************************************************************************/
  2. /* ControlZ.h - header file to support the ControlZ additional controls. */
  3. /* Copyright ⌐ 1994, C. van Zwynsvoorde. All rights reserved.            */
  4. /*************************************************************************/
  5.  
  6.  
  7. /********************************************/
  8. /* Scaler Styles. Combine with the standard */
  9. /* WS_XXX styles when creating the window   */
  10. /********************************************/
  11. #define CZSS_TYPELONG        0x00000000L
  12. #define CZSS_TYPEDOUBLE        0x00008000L
  13. #define CZSS_NOCAPTION        0x00000000L
  14. #define CZSS_CAPTION        0x00004000L
  15.  
  16. #define CZSS_SLIDER_0        0x00000000L
  17. #define CZSS_SLIDER_1        0x00000001L
  18. #define CZSS_SLIDER_2        0x00000002L
  19. #define CZSS_SLIDER_3        0x00000003L
  20. #define CZSS_SLIDER_4        0x00000004L
  21. #define CZSS_SLIDER_5        0x00000005L
  22. #define CZSS_SLIDER_6        0x00000006L
  23. #define CZSS_SLIDER_7        0x00000007L
  24. #define CZSS_SLIDER_8        0x00000008L
  25. #define CZSS_SLIDER_9        0x00000009L
  26.  
  27. #define CZSS_TICKS_NORMAL    0x00000000L
  28. #define CZSS_TICKS_RAISED    0x00000100L
  29. #define CZSS_TICKS_DUG        0x00000200L
  30.  
  31. /******************************************/
  32. /* Dial Styles. Combine with the standard */
  33. /* WS_XXX styles when creating the window */
  34. /******************************************/
  35. #define CZDS_TYPELONG        0x00000000L
  36. #define CZDS_TYPEDOUBLE        0x00008000L
  37. #define CZDS_NOCAPTION        0x00000000L
  38. #define CZDS_CAPTION        0x00004000L
  39.  
  40. #define CZDS_SLIDERSTART_0    0x00000000L
  41. #define CZDS_SLIDERSTART_1    0x00000100L
  42. #define CZDS_SLIDERSTART_2    0x00000200L
  43. #define CZDS_SLIDERSTART_3    0x00000300L
  44. #define CZDS_SLIDERSTART_4    0x00000400L
  45. #define CZDS_SLIDERSTART_5    0x00000500L
  46. #define CZDS_SLIDERSTART_6    0x00000600L
  47. #define CZDS_SLIDERSTART_7    0x00000700L
  48. #define CZDS_SLIDERSTART_8    0x00000800L
  49. #define CZDS_SLIDERSTART_9    0x00000900L
  50. #define CZDS_SLIDERSTART_10    0x00000A00L
  51. #define CZDS_SLIDERSTART_11    0x00000B00L
  52. #define CZDS_SLIDERSTART_12    0x00000C00L
  53. #define CZDS_SLIDERSTART_13    0x00000D00L
  54. #define CZDS_SLIDERSTART_14    0x00000E00L
  55. #define CZDS_SLIDERSTART_15    0x00000F00L
  56.  
  57. #define CZDS_SLIDEREND_0    0x00000000L
  58. #define CZDS_SLIDEREND_1    0x00000010L
  59. #define CZDS_SLIDEREND_2    0x00000020L
  60. #define CZDS_SLIDEREND_3    0x00000030L
  61. #define CZDS_SLIDEREND_4    0x00000040L
  62. #define CZDS_SLIDEREND_5    0x00000050L
  63. #define CZDS_SLIDEREND_6    0x00000060L
  64. #define CZDS_SLIDEREND_7    0x00000070L
  65. #define CZDS_SLIDEREND_8    0x00000080L
  66. #define CZDS_SLIDEREND_9    0x00000090L
  67. #define CZDS_SLIDEREND_10    0x000000A0L
  68. #define CZDS_SLIDEREND_11    0x000000B0L
  69. #define CZDS_SLIDEREND_12    0x000000C0L
  70. #define CZDS_SLIDEREND_13    0x000000D0L
  71. #define CZDS_SLIDEREND_14    0x000000E0L
  72. #define CZDS_SLIDEREND_15    0x000000F0L
  73.  
  74. #define CZDS_NEEDLE_0        0x00000000L
  75. #define CZDS_NEEDLE_1        0x00000001L
  76. #define CZDS_NEEDLE_2        0x00000002L
  77. #define CZDS_NEEDLE_3        0x00000003L
  78. #define CZDS_NEEDLE_4        0x00000004L
  79. #define CZDS_NEEDLE_5        0x00000005L
  80. #define CZDS_NEEDLE_6        0x00000006L
  81. #define CZDS_NEEDLE_7        0x00000007L
  82. #define CZDS_NEEDLE_8        0x00000008L
  83. #define CZDS_NEEDLE_9        0x00000009L
  84. #define CZDS_NEEDLE_10        0x0000000AL
  85. #define CZDS_NEEDLE_11        0x0000000BL
  86. #define CZDS_NEEDLE_12        0x0000000CL
  87. #define CZDS_NEEDLE_13        0x0000000DL
  88. #define CZDS_NEEDLE_14        0x0000000EL
  89. #define CZDS_NEEDLE_15        0x0000000FL
  90.  
  91. #define CZDS_TICKS_0        0x00000000L
  92. #define CZDS_TICKS_1        0x00001000L
  93. #define CZDS_TICKS_2        0x00002000L
  94. #define CZDS_TICKS_3        0x00003000L
  95.  
  96.  
  97. /*******************************************/
  98. /* Tuner Styles. Combine with the standard */
  99. /* WS_XXX styles when creating the window  */
  100. /*******************************************/
  101. #define CZTS_TYPELONG        0x00000000L
  102. #define CZTS_TYPEDOUBLE        0x00008000L
  103. #define CZTS_NOCAPTION        0x00000000L
  104. #define CZTS_CAPTION        0x00004000L
  105.  
  106. #define CZTS_WHEELDEPTH_0    0x00000000L
  107. #define CZTS_WHEELDEPTH_1    0x00000010L
  108. #define CZTS_WHEELDEPTH_2    0x00000020L
  109. #define CZTS_WHEELDEPTH_3    0x00000030L
  110. #define CZTS_WHEELDEPTH_4    0x00000040L
  111. #define CZTS_WHEELDEPTH_5    0x00000050L
  112. #define CZTS_WHEELDEPTH_6    0x00000060L
  113. #define CZTS_WHEELDEPTH_7    0x00000070L
  114. #define CZTS_WHEELDEPTH_8    0x00000080L
  115. #define CZTS_WHEELDEPTH_9    0x00000090L
  116. #define CZTS_WHEELDEPTH_10    0x000000A0L
  117. #define CZTS_WHEELDEPTH_11    0x000000B0L
  118. #define CZTS_WHEELDEPTH_12    0x000000C0L
  119. #define CZTS_WHEELDEPTH_13    0x000000D0L
  120. #define CZTS_WHEELDEPTH_14    0x000000E0L
  121. #define CZTS_WHEELDEPTH_15    0x000000F0L
  122.  
  123. #define CZTS_MARK_0        0x00000000L
  124. #define CZTS_MARK_1        0x00000001L
  125. #define CZTS_MARK_2        0x00000002L
  126. #define CZTS_MARK_3        0x00000003L
  127. #define CZTS_MARK_4        0x00000004L
  128. #define CZTS_MARK_5        0x00000005L
  129. #define CZTS_MARK_6        0x00000006L
  130. #define CZTS_MARK_7        0x00000007L
  131. #define CZTS_MARK_8        0x00000008L
  132. #define CZTS_MARK_9        0x00000009L
  133. #define CZTS_MARK_10        0x0000000AL
  134. #define CZTS_MARK_11        0x0000000BL
  135. #define CZTS_MARK_12        0x0000000CL
  136. #define CZTS_MARK_13        0x0000000DL
  137. #define CZTS_MARK_14        0x0000000EL
  138. #define CZTS_MARK_15        0x0000000FL
  139.  
  140.  
  141.  
  142. /***************************************************/
  143. /* Hierarchic Combo Box Styles. Combine with the   */
  144. /* standard WS_XXX styles when creating the window */
  145. /***************************************************/
  146. #define CZCBS_BACKGROUND_0    0x00000000L
  147. #define CZCBS_BACKGROUND_1    0x00000100L
  148. #define CZCBS_BACKGROUND_2    0x00000200L
  149. #define CZCBS_BACKGROUND_3    0x00000300L
  150. #define CZCBS_BACKGROUND_4    0x00000400L
  151. #define CZCBS_BACKGROUND_5    0x00000500L
  152. #define CZCBS_BACKGROUND_6    0x00000600L
  153. #define CZCBS_BACKGROUND_7    0x00000700L
  154. #define CZCBS_BACKGROUND_8    0x00000800L
  155. #define CZCBS_BACKGROUND_9    0x00000900L
  156. #define CZCBS_BACKGROUND_10    0x00000A00L
  157. #define CZCBS_BACKGROUND_11    0x00000B00L
  158. #define CZCBS_BACKGROUND_12    0x00000C00L
  159. #define CZCBS_BACKGROUND_13    0x00000D00L
  160. #define CZCBS_BACKGROUND_14    0x00000E00L
  161. #define CZCBS_BACKGROUND_15    0x00000F00L
  162.  
  163. #define CZCBS_SELECTED_0    0x00000000L
  164. #define CZCBS_SELECTED_1    0x00000010L
  165. #define CZCBS_SELECTED_2    0x00000020L
  166. #define CZCBS_SELECTED_3    0x00000030L
  167. #define CZCBS_SELECTED_4    0x00000040L
  168. #define CZCBS_SELECTED_5    0x00000050L
  169. #define CZCBS_SELECTED_6    0x00000060L
  170. #define CZCBS_SELECTED_7    0x00000070L
  171. #define CZCBS_SELECTED_8    0x00000080L
  172. #define CZCBS_SELECTED_9    0x00000090L
  173. #define CZCBS_SELECTED_10    0x000000A0L
  174. #define CZCBS_SELECTED_11    0x000000B0L
  175. #define CZCBS_SELECTED_12    0x000000C0L
  176. #define CZCBS_SELECTED_13    0x000000D0L
  177. #define CZCBS_SELECTED_14    0x000000E0L
  178. #define CZCBS_SELECTED_15    0x000000F0L
  179.  
  180. #define CZCBS_UNSELECTED_0    0x00000000L
  181. #define CZCBS_UNSELECTED_1    0x00000001L
  182. #define CZCBS_UNSELECTED_2    0x00000002L
  183. #define CZCBS_UNSELECTED_3    0x00000003L
  184. #define CZCBS_UNSELECTED_4    0x00000004L
  185. #define CZCBS_UNSELECTED_5    0x00000005L
  186. #define CZCBS_UNSELECTED_6    0x00000006L
  187. #define CZCBS_UNSELECTED_7    0x00000007L
  188. #define CZCBS_UNSELECTED_8    0x00000008L
  189. #define CZCBS_UNSELECTED_9    0x00000009L
  190. #define CZCBS_UNSELECTED_10    0x0000000AL
  191. #define CZCBS_UNSELECTED_11    0x0000000BL
  192. #define CZCBS_UNSELECTED_12    0x0000000CL
  193. #define CZCBS_UNSELECTED_13    0x0000000DL
  194. #define CZCBS_UNSELECTED_14    0x0000000EL
  195. #define CZCBS_UNSELECTED_15    0x0000000FL
  196.  
  197. #define CZCBS_SIMPLE        0x00000000L
  198. #define CZCBS_DROPDOWNLIST    0x00001000L
  199.  
  200. #define CZCBS_DEMO        0x00002000L
  201. #define CZCBS_NODEMO        0x00000000L
  202.  
  203. #define CZCBS_MARKER_0        0x00000000L
  204. #define CZCBS_MARKER_1        0x00004000L
  205. #define CZCBS_MARKER_2        0x00008000L
  206. #define CZCBS_MARKER_3        0x0000C000L
  207.  
  208.  
  209. /***************************************************/
  210. /* Hierarchic List Box Styles. Combine with the    */
  211. /* standard WS_XXX styles when creating the window */
  212. /***************************************************/
  213. #define CZLBS_BACKGROUND_0    0x00000000L
  214. #define CZLBS_BACKGROUND_1    0x00000100L
  215. #define CZLBS_BACKGROUND_2    0x00000200L
  216. #define CZLBS_BACKGROUND_3    0x00000300L
  217. #define CZLBS_BACKGROUND_4    0x00000400L
  218. #define CZLBS_BACKGROUND_5    0x00000500L
  219. #define CZLBS_BACKGROUND_6    0x00000600L
  220. #define CZLBS_BACKGROUND_7    0x00000700L
  221. #define CZLBS_BACKGROUND_8    0x00000800L
  222. #define CZLBS_BACKGROUND_9    0x00000900L
  223. #define CZLBS_BACKGROUND_10    0x00000A00L
  224. #define CZLBS_BACKGROUND_11    0x00000B00L
  225. #define CZLBS_BACKGROUND_12    0x00000C00L
  226. #define CZLBS_BACKGROUND_13    0x00000D00L
  227. #define CZLBS_BACKGROUND_14    0x00000E00L
  228. #define CZLBS_BACKGROUND_15    0x00000F00L
  229.  
  230. #define CZLBS_SELECTED_0    0x00000000L
  231. #define CZLBS_SELECTED_1    0x00000010L
  232. #define CZLBS_SELECTED_2    0x00000020L
  233. #define CZLBS_SELECTED_3    0x00000030L
  234. #define CZLBS_SELECTED_4    0x00000040L
  235. #define CZLBS_SELECTED_5    0x00000050L
  236. #define CZLBS_SELECTED_6    0x00000060L
  237. #define CZLBS_SELECTED_7    0x00000070L
  238. #define CZLBS_SELECTED_8    0x00000080L
  239. #define CZLBS_SELECTED_9    0x00000090L
  240. #define CZLBS_SELECTED_10    0x000000A0L
  241. #define CZLBS_SELECTED_11    0x000000B0L
  242. #define CZLBS_SELECTED_12    0x000000C0L
  243. #define CZLBS_SELECTED_13    0x000000D0L
  244. #define CZLBS_SELECTED_14    0x000000E0L
  245. #define CZLBS_SELECTED_15    0x000000F0L
  246.  
  247. #define CZLBS_UNSELECTED_0    0x00000000L
  248. #define CZLBS_UNSELECTED_1    0x00000001L
  249. #define CZLBS_UNSELECTED_2    0x00000002L
  250. #define CZLBS_UNSELECTED_3    0x00000003L
  251. #define CZLBS_UNSELECTED_4    0x00000004L
  252. #define CZLBS_UNSELECTED_5    0x00000005L
  253. #define CZLBS_UNSELECTED_6    0x00000006L
  254. #define CZLBS_UNSELECTED_7    0x00000007L
  255. #define CZLBS_UNSELECTED_8    0x00000008L
  256. #define CZLBS_UNSELECTED_9    0x00000009L
  257. #define CZLBS_UNSELECTED_10    0x0000000AL
  258. #define CZLBS_UNSELECTED_11    0x0000000BL
  259. #define CZLBS_UNSELECTED_12    0x0000000CL
  260. #define CZLBS_UNSELECTED_13    0x0000000DL
  261. #define CZLBS_UNSELECTED_14    0x0000000EL
  262. #define CZLBS_UNSELECTED_15    0x0000000FL
  263.  
  264. #define CZLBS_DEMO        0x00002000L
  265. #define CZLBS_NODEMO        0x00000000L
  266.  
  267. #define CZLBS_SCROLLCAPTION    0x00000000L
  268. #define CZLBS_FIXEDCAPTION    0x00001000L
  269.  
  270. #define CZLBS_MARKER_0        0x00000000L
  271. #define CZLBS_MARKER_1        0x00004000L
  272. #define CZLBS_MARKER_2        0x00008000L
  273. #define CZLBS_MARKER_3        0x0000C000L
  274.  
  275.  
  276. /******************************************/
  277. /* Link Styles. Combine with the standard */
  278. /* WS_XXX styles when creating the window */
  279. /******************************************/
  280. #define CZLS_TLCORNER    0x00000000L
  281. #define CZLS_BRCORNER    0x00000001L
  282. #define CZLS_TRCORNER    0x00000002L
  283. #define CZLS_BLCORNER    0x00000003L
  284. #define CZLS_HLINE    (CZLS_TLCORNER | CZLS_DIRECT)
  285. #define CZLS_VLINE    (CZLS_TRCORNER | CZLS_DIRECT)
  286. #define CZLS_DIAGUP    (CZLS_BLCORNER | CZLS_DIRECT)
  287. #define CZLS_DIAGDOWN    (CZLS_BRCORNER | CZLS_DIRECT)
  288.  
  289. #define CZLS_RECT    0x00000000L
  290. #define CZLS_ELLIPTIC    0x00000004L
  291. #define CZLS_ROUNDRECT    0x00000008L
  292. #define CZLS_DIRECT    0x0000000CL
  293.  
  294. #define CZLS_COLOR_0    0x00000000L
  295. #define CZLS_COLOR_1    0x00000010L
  296. #define CZLS_COLOR_2    0x00000020L
  297. #define CZLS_COLOR_3    0x00000030L
  298. #define CZLS_COLOR_4    0x00000040L
  299. #define CZLS_COLOR_5    0x00000050L
  300. #define CZLS_COLOR_6    0x00000060L
  301. #define CZLS_COLOR_7    0x00000070L
  302. #define CZLS_COLOR_8    0x00000080L
  303. #define CZLS_COLOR_9    0x00000090L
  304. #define CZLS_COLOR_10    0x000000A0L
  305. #define CZLS_COLOR_11    0x000000B0L
  306. #define CZLS_COLOR_12    0x000000C0L
  307. #define CZLS_COLOR_13    0x000000D0L
  308. #define CZLS_COLOR_14    0x000000E0L
  309. #define CZLS_COLOR_15    0x000000F0L
  310.  
  311. #define CZLS_START_0    0x00000000L
  312. #define CZLS_START_1    0x00000100L
  313. #define CZLS_START_2    0x00000200L
  314. #define CZLS_START_3    0x00000300L
  315. #define CZLS_START_4    0x00000400L
  316. #define CZLS_START_5    0x00000500L
  317. #define CZLS_START_6    0x00000600L
  318. #define CZLS_START_7    0x00000700L
  319. #define CZLS_START_8    0x00000800L
  320. #define CZLS_START_9    0x00000900L
  321. #define CZLS_START_10    0x00000A00L
  322. #define CZLS_START_11    0x00000B00L
  323. #define CZLS_START_12    0x00000C00L
  324. #define CZLS_START_13    0x00000D00L
  325. #define CZLS_START_14    0x00000E00L
  326. #define CZLS_START_15    0x00000F00L
  327.  
  328. #define CZLS_END_0    0x00000000L
  329. #define CZLS_END_1    0x00001000L
  330. #define CZLS_END_2    0x00002000L
  331. #define CZLS_END_3    0x00003000L
  332. #define CZLS_END_4    0x00004000L
  333. #define CZLS_END_5    0x00005000L
  334. #define CZLS_END_6    0x00006000L
  335. #define CZLS_END_7    0x00007000L
  336. #define CZLS_END_8    0x00008000L
  337. #define CZLS_END_9    0x00009000L
  338. #define CZLS_END_10    0x0000A000L
  339. #define CZLS_END_11    0x0000B000L
  340. #define CZLS_END_12    0x0000C000L
  341. #define CZLS_END_13    0x0000D000L
  342. #define CZLS_END_14    0x0000E000L
  343. #define CZLS_END_15    0x0000F000L
  344.  
  345.  
  346. /******************************************/
  347. /* Text Styles. Combine with the standard */
  348. /* WS_XXX styles when creating the window */
  349. /******************************************/
  350. #define CZSTS_TEXTCOLOR_0    0x00000000L
  351. #define CZSTS_TEXTCOLOR_1    0x00001000L
  352. #define CZSTS_TEXTCOLOR_2       0x00002000L
  353. #define CZSTS_TEXTCOLOR_3    0x00003000L
  354. #define CZSTS_TEXTCOLOR_4    0x00004000L
  355. #define CZSTS_TEXTCOLOR_5    0x00005000L
  356. #define CZSTS_TEXTCOLOR_6    0x00006000L
  357. #define CZSTS_TEXTCOLOR_7    0x00007000L
  358. #define CZSTS_TEXTCOLOR_8    0x00008000L
  359. #define CZSTS_TEXTCOLOR_9    0x00009000L
  360. #define CZSTS_TEXTCOLOR_10    0x0000A000L
  361. #define CZSTS_TEXTCOLOR_11    0x0000B000L
  362. #define CZSTS_TEXTCOLOR_12    0x0000C000L
  363. #define CZSTS_TEXTCOLOR_13    0x0000D000L
  364. #define CZSTS_TEXTCOLOR_14    0x0000E000L
  365. #define CZSTS_TEXTCOLOR_15    0x0000F000L
  366.  
  367. #define CZSTS_BACKCOLOR_0    0x00000000L
  368. #define CZSTS_BACKCOLOR_1    0x00000100L
  369. #define CZSTS_BACKCOLOR_2    0x00000200L
  370. #define CZSTS_BACKCOLOR_3    0x00000300L
  371. #define CZSTS_BACKCOLOR_4    0x00000400L
  372. #define CZSTS_BACKCOLOR_5    0x00000500L
  373. #define CZSTS_BACKCOLOR_6    0x00000600L
  374. #define CZSTS_BACKCOLOR_7    0x00000700L
  375. #define CZSTS_BACKCOLOR_8    0x00000800L
  376. #define CZSTS_BACKCOLOR_9    0x00000900L
  377. #define CZSTS_BACKCOLOR_10    0x00000A00L
  378. #define CZSTS_BACKCOLOR_11    0x00000B00L
  379. #define CZSTS_BACKCOLOR_12    0x00000C00L
  380. #define CZSTS_BACKCOLOR_13    0x00000D00L
  381. #define CZSTS_BACKCOLOR_14    0x00000E00L
  382. #define CZSTS_BACKCOLOR_15    0x00000F00L
  383.  
  384. #define CZSTS_LEFT        0x00000000L
  385. #define CZSTS_CENTER        0x00000010L
  386. #define CZSTS_RIGHT        0x00000020L
  387.  
  388. #define CZSTS_UNDERLINE        0x00000040L
  389. #define CZSTS_ITALIC        0x00000080L
  390. #define CZSTS_BOLD        0x00000008L
  391. #define CZSTS_SMALLCAPS        0x00000004L
  392.  
  393. #define CZSTS_RIGHTWARDS    0x00000000L
  394. #define CZSTS_UPWARDS        0x00000001L
  395. #define CZSTS_LEFTWARDS        0x00000002L
  396. #define CZSTS_DOWNWARDS        0x00000003L
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403. /****************************************/
  404. /* Messages. Send those to the controls */
  405. /****************************************/
  406.  
  407. /**********************************/
  408. /* For the scalet, dial and tuner */
  409. /**********************************/
  410. #define CZM_SETPOS        (WM_USER+100)    /* wParam = NULL. lParam = pos if type is LONG, &pos if type is double */
  411. #define CZM_GETPOS        (WM_USER+101)    /* wParam = NULL. lParam = &pos. pos must allocate 4/8 bits depending on type. */
  412.                         /* Besides, SendMessage() will return the value directly if type is LONG */
  413. #define CZM_SETINC        (WM_USER+102)    /* wParam = TRUE if increase, FALSE if decrease. lParam = NULL. */
  414. #define CZM_GETINC        (WM_USER+103)    /* wParam = NULL. lParam = &inc. pos must allocate 4/8 bits depending on type. */
  415.                         /* Besides, SendMessage() will return the value directly if type is LONG */
  416. #define CZM_INCPOS        (WM_USER+104)    /* wParam = TRUE if increase, FALSE if decrease. lParam = NULL. */
  417.  
  418. /***************************/
  419. /* For the scaler and dial */
  420. /***************************/
  421. #define CZM_SETRANGEMIN        (WM_USER+105)    /* wParam = NULL. lParam = range if type is LONG, &range if type is double */
  422. #define CZM_SETRANGEMAX        (WM_USER+106)    /* wParam = NULL. lParam = range if type is LONG, &range if type is double */
  423.  
  424. #define CZM_GETRANGEMIN        (WM_USER+107)    /* wParam = NULL. lParam = &range. range must allocate 4/8 bits depending on type. */
  425.                         /* Besides, SendMessage() will return the value directly if type is LONG */
  426. #define CZM_GETRANGEMAX        (WM_USER+108)    /* wParam = NULL. lParam = &range. range must allocate 4/8 bits depending on type. */
  427.                         /* Besides, SendMessage() will return the value directly if type is LONG */
  428. /*****************/
  429. /* For the tuner */
  430. /*****************/
  431. #define CZM_SETTURN        (WM_USER+105)    /* wParam = NULL. lParam = turn if type is LONG, &turn if type is double */
  432. #define CZM_GETTURN        (WM_USER+106)    /* wParam = NULL. lParam = &turn. turn must allocate 4/8 bits depending on type. */
  433.                         /* Besides, SendMessage() will return the value directly if type is LONG */
  434.  
  435. /**********************************/
  436. /* For the list box and combo box */
  437. /**********************************/
  438. #define CZM_ADDSECTION        (WM_USER+100)    /* wParam = section id. (LPSTR)lParam = section title. */
  439. #define CZM_DELETESECTION    (WM_USER+101)    /* wParam = section id. lParam = NULL. */
  440. #define CZM_FILLSECTION        (WM_USER+102)    /* wParam = NULL. (LPSTR)lParam = item string. */
  441. #define CZM_ISSECTION        (WM_USER+103)    /* wParam = index. lParam = NULL. */
  442.  
  443.  
  444.  
  445. /********************************************************/
  446. /* Notification messages. Recieved by the parent window */
  447. /********************************************************/
  448.  
  449. /********************************************/
  450. /* Received from the scaler, dial and tuner */
  451. /********************************************/
  452. #define CZN_POSCHANGE        1    /* iMessage = WM_COMMAND. wParam = control hWnd. lParam = MAKELONG(ctrlID, CZN_POSCHANGE). */
  453.  
  454. /********************************************/
  455. /* Received from the list box and combo box */
  456. /********************************************/
  457. #define CZN_SELCHANGE        1    /* iMessage = WM_COMmAND. wParam = control hWnd. lParam = MAKELONG(ctrlID, CZN_SELCHANGE). */
  458.                     /* The selection is not on a section header. */
  459. #define CZN_FILLSECTION        2    /* iMessage = WM_COMMAND. wParam = section id. lParam = MAKELONG(ctrlID, CZN_FILLSECTION). */
  460.                     /* The selection is on a section header. The application must send the strings */
  461.                     /* belonging to this section by means of the CZM_FILLSECTION message. */